home *** CD-ROM | disk | FTP | other *** search
- Path: ts3-029.jaxnet.com!user
- From: garyg@jax.jaxnet.com (Gary M. Greenberg)
- Newsgroups: comp.lang.c
- Subject: Re: iHelp! Dumb question for smart THINK C users.
- Date: Sat, 20 Jan 1996 18:23:27 -0500
- Organization: Southeast Network Services, Inc.
- Message-ID: <garyg-2001961823270001@ts3-029.jaxnet.com>
- References: <stlabguest-2001961601280001@pm71001.scilab.wesleyan.edu>
- NNTP-Posting-Host: ts3-029.jaxnet.com
-
- In article <stlabguest-2001961601280001@pm71001.scilab.wesleyan.edu>,
- stlabguest@wesleyan.edu (STLab Public Access Macintosh) wrote:
-
- > I'm a total newbie to C programming, but I got a copy of THINK C yesterday
- > and decided to try to learn. So I tried a very simple program:
- >
- > #include <STDIO.h>
-
- Try this ->> <stdio.h>
-
- > main()
-
- surely you meant "int main ()"
-
- > {
- > printf( "bla" );
-
- here, you forgot "return 0;"
-
- > }
-
- Other than that, it's a nice first program ;-)
-
- > It compiled without any errors, but when I tried to run it, it said that
- > there was a link error: it didn't know what "prinf" meant. I'm sure that
- > it was loading the "STDIO.h" properly, because I changed the program to:
-
- how sure???
-
- good luck.
-
- btw, buy The C Programming Language by Kernighan & Ritchie, Second Edition
- and read it. Grab a copy of the c.l.c FAQ when it's posted, or slide on
- over to M.I.T. and grab a copy, and read that too.
- These two tools will make your programming days easier, more productive,
- and they'll help keep the c.l.c. signal-to-noise ratio within reason.
- <ever the eternal optomist> ;-)
- cheers,
-
- gary /* the Sorcerer's Apprentice */
-
- "Why do we have to hide from the police, Daddy?"
- "Because we use vi, honey. They use emacs."
- "Unless we're on a Mac, then we use BBEdit 'cause `It Doesn't Suck!'"
-